package com.cctc.dao.impl;

import com.cctc.config.DevDataSource;
import com.cctc.dao.WareInfoDao;
import com.cctc.entity.WareInfoEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * @Name WareInfoDaoImpl
 * @Description: 仓库信息
 * @Author: lichao
 * @Email: li2chao@126.com
 * @Date: 2024-01-13 10:50:13
 **/
public class WareInfoDaoImpl implements WareInfoDao {

    @Override
    public List<WareInfoEntity> list() {
        List<WareInfoEntity> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            WareInfoEntity wareInfo = new WareInfoEntity();
            wareInfo.setId((long) i);
            wareInfo.setName("河南省-周口市-冷冻-00" + i + 1);
            wareInfo.setAreacode("100040");
            wareInfo.setAddress("河南省周口市开发区冷冻市场");
            list.add(wareInfo);
        }
        return list;
    }

    @Override
    public WareInfoEntity findById(Long id) {
        return null;
    }

    @Override
    public void insert(WareInfoEntity wareInfo) {

    }

    @Override
    public void update(WareInfoEntity wareInfo) {

    }

    @Override
    public void remove(Long[] ids) {

    }
}

